package com.wuzhipeng.xuechengcontent;

import cn.hutool.http.HttpResponse;
import cn.hutool.http.HttpUtil;
import cn.hutool.json.JSONUtil;

import java.util.HashMap;
import java.util.Map;

public class wwww {
    public static void main(String[] args) {
        String url = "http://localhost:8088/mindspace/momApi/test/sendTestTaskInfo";
        Map<String, Object> paramMap = new HashMap<>();
        paramMap.put("key1", "value1");
        paramMap.put("key2", "value2");
//        HttpResponse execute = HttpUtil.createPost(url).contentType("application/json").body(JSONUtil.toJsonStr(paramMap)).execute();
//        String response = execute.body();
        HttpUtil.post(url, paramMap);
//        String response2 = HttpUtil.post(url, paramMap);
        /*System.out.println(response);*/
    }
}
